package chixing.day06;

public class CustomersTest {
    public static void main(String[] args) {
    //创建多个 LoanCustomer 对象并存入数组或列表
        //遍历列表：输出客户姓名、账户余额、贷款金额、以及是否有资格再贷款
        LoanCustomer[] customers = new LoanCustomer[3];
        customers[0] = new LoanCustomer("张三", 5000, 25000);
        customers[1] = new LoanCustomer("李四", 110000, 10000);
        customers[2] = new LoanCustomer("王五", 20000, 20000);
        for (int i = 0; i < customers.length; i++) {
            customers[i].printCustomerInfo();
        }
    }
}
